home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
163_01
/
rindex.c
< prev
Wrap
Text File
|
1988-01-30
|
384b
|
13 lines
/*
** return pointer to the last occurrence of c in s
*/
rindex(s, c) char *s, c; {
char *rindex;
rindex = 0;
while(*s) {
if(*s == c) rindex = s;
s++;
}
return rindex;
}